package com.plateno.mapper;


import java.util.List;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import com.plateno.bean.model.SensitiveWord;

public interface SensitveWordMapper {
	
	@Select("SELECT sensitiveWord FROM sensitive_word")
	List<String> getWords();
	
	
	@Select("SELECT * FROM sensitive_word")
	@Results({
		@Result(property = "id",column = "ID"),
		@Result(property = "sensitiveWord",column = "SENSITIVE_WORD")
	})
	List<SensitiveWord> getAll();
}
